<?php 
	echo $this->Form->create('Recipe', array('id'	=> 'submit_form' , 'class'	=> 'form-horizontal', 'novalidate'	=> 'novalidate')); 
	echo '<input type="hidden" name="data[Recipe][id]" value="0" />';
?>
<div class="tab-pane active" id="tab1">
	<h3 class="block">Add new recipe</h3>
	<div class="form-group">
		<label class="control-label col-md-3">Title
			<span class="required">*</span>
		</label>
		<div class="col-md-4">
			<?php echo $this->Form->input('title', 
				array(	'label'	=> false, 
						'div'	=> false, 
						'class'	=> 'form-control',
						'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block'))
			)); ?>
														
														
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-md-3">Content
			<span class="required"></span>
		</label>
		<div class="col-md-4">
			<?php echo $this->Form->input('content', 
				array(	'label'	=> false, 
						'div'	=> false, 
						'class'	=> 'form-control',
						'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block'))
			)); ?>																											
		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-md-3">Featured Image
			<span class="required"></span>
		</label>
		<div class="col-md-4">
			<?php echo $this->Form->input('image', 
				array(	'label'	=> false, 
						'div'	=> false, 
						'class'	=> '',
						'type'	=> 'file',						
						'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block'))
			)); ?>																											
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-md-3">Templates
			<span class="required"></span>
		</label>
		<div class="col-md-4">
			<?php echo $this->Form->input('template', 
				array(	'label'	=> false, 
						'div'	=> false, 
						'class'	=> 'form-control',
						'options'	=> array(1000, 1300, 1500, 1800),
						'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block'))
			)); ?>																											
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-md-3">Categories
			<span class="required"></span>
		</label>
		<div class="col-md-4">
			<?php echo $this->Form->input('category_id', 
				array(	'label'	=> false, 
						'div'	=> false, 
						'class'	=> 'form-control',
						'multiple'	=> true,
						'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block'))
			)); ?>																											
		</div>
	</div>
	<div class="form-group">
		<label class="control-label col-md-3">Mains
			<span class="required"></span>
		</label>
		<div class="col-md-4">
			<?php echo $this->Form->input('main_id', 
				array(	'label'	=> false, 
						'div'	=> false, 
						'class'	=> 'form-control',
						'multiple'	=> true,
						'error' => array('attributes' => array('wrap' => 'span','class' => 'help-block'))
			)); ?>																											
		</div>
	</div>
	<div class="col-md-offset-3 col-md-9">
		<button class="btn green" type="submit">Submit</button>
		<?php 
				echo $this->Html->link('Cancel', array(
										'controller'	=> 'recipes',
										'action'		=> 'admin_index'
									),
										array('class'	=> 'btn default')
									);
		?>
	</div>
</div>	
</form>